package com.itheima.demo;

import java.time.LocalDateTime;

public class LocalDateTimeDemo {
    public static void main(String[] args) {
        System.out.println(LocalDateTime.now());
        LocalDateTime of = LocalDateTime.of(2021, 03, 26, 11, 48, 59);
        System.out.println("年"+of.getYear());
        System.out.println("月"+of.getMonth());
        System.out.println("月的第几天"+of.getDayOfMonth());
        System.out.println("年的第几天"+of.getDayOfYear());
        System.out.println("星期几"+of.getDayOfWeek());
        System.out.println("分钟"+of.getMinute());
        System.out.println("小时"+of.getHour());
    }
}
